<template>
	<view class="template-partner tn-safe-area-inset-bottom">
		<!-- 顶部自定义导航 -->
		<tn-navbar fixed height="" back-icon="" home-icon="" :safe-area-inset-right="false">小圈子</tn-navbar>
		<!-- 消息、通讯录-->
		<view class="">
			<!-- 消息-->
			<view class="" :style="{paddingTop: vuex_custom_bar_height  +'px'}">
				<!-- 一些消息 -->
				<view class="">
					<view class="tn-flex tn-flex-col-center" style="margin: 50rpx 30rpx;" v-for="(item,index) in 6" :key="index"
						@click="tn('/partnerPages/chat')">
						<view class="logo-pic">
							<view class="logo-image"
								style="background-image:url('https://ww2.sinaimg.cn/mw690/007ut4Uhly1hx4v37mpxcj30u017cgrv.jpg');width: 90rpx;height: 90rpx;background-size: cover;">
							</view>
						</view>
						<view class="" style="margin-left:inherit;width: 67vw">
							<view class="tn-flex tn-flex-row-between tn-flex-col-between">
								<view class="justify-content-item">
									<text class="tn-color-friend tn-text-lg tn-text-bold">付衣衣</text>
								</view>
							</view>
							<view class="tn-padding-top-xs tn-text-ellipsis">
								<text class="tn-color-light">我喜欢你，就像你喜欢我一样</text>
							</view>
						</view>
						<view class="" style="width: 15vw;">
							<view class="tn-flex tn-flex-row-right tn-margin-bottom-xs tn-margin-top-xs">
								<text class="tn-color-light tn-text-sm">08:26</text>
							</view>
							<view class="tn-flex tn-flex-row-right tn-margin-top-xs">
								<!-- <tn-badge backgroundColor="#EA5E55" fontColor="tn-color-white" :radius="30" margin="10rpx 0rpx 10rpx 10rpx"><text>6</text></tn-badge> -->
							</view>
						</view>
					</view>

					<view class="tn-flex tn-flex-col-center" style="margin: 50rpx 30rpx;" v-for="(item,index) in 6" :key="index"
						@click="tn('/partnerPages/chat')">
						<view class="logo-pic">
							<view class="logo-image"
								style="background-image:url('https://ww2.sinaimg.cn/mw690/007ut4Uhly1hx4v37mpxcj30u017cgrv.jpg');width: 90rpx;height: 90rpx;background-size: cover;">
							</view>
						</view>
						<view class="tn-padding-left-lg" style="margin-left:inherit;width: 67vw">
							<view class="tn-flex tn-flex-row-between tn-flex-col-between">
								<view class="justify-content-item">
									<text class="tn-color-friend tn-text-lg tn-text-bold">付衣衣</text>
								</view>

							</view>
							<view class="tn-padding-top-xs tn-text-ellipsis">
								<text class="tn-color-light">我不喜欢下雨，因为雨滴从不滴落我手心上因为雨滴从不滴落我手心上</text>
							</view>
						</view>
						<view class="" style="width: 15vw;">
							<view class="tn-flex tn-flex-row-right tn-margin-bottom-xs tn-margin-top-xs">
								<text class="tn-color-light tn-text-sm">5月20日</text>
							</view>
							<view class="tn-flex tn-flex-row-right tn-margin-top-xs">
								<!-- <tn-badge backgroundColor="#EA5E55" fontColor="tn-color-white" :radius="30" margin="10rpx 0rpx 10rpx 10rpx"><text>6</text></tn-badge> -->
							</view>
						</view>
					</view>

				</view>


			</view>


		</view>


		<view class="tn-tabbar-height"></view>

	</view>
</template>

<script>
	export default {
		name: 'Partner',
		data() {
			return {
				show: false,
				// 滚动的距离
				scrollTop: 0,

			}
		},
		onLoad() {

		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop
		},
		methods: {
			// 跳转
			tn(e) {
				uni.navigateTo({
					url: e,
				});
			},
			// tab选项卡切换
			tabChange(index) {
				this.current = index
			},

			// tab选项卡切换
			tabChange(index) {
				this.current = index
			},
			// 选择索引列表索引事件
			indexListKeysSelect(event) {
				this.$emit('key-select', event.scrollTop)
			},
			// 更新页面的滚动距离
			_updateScrollTopValue(top) {
				this.scrollTop = top
			},
		}
	}
</script>

<style lang="scss" scoped>
	.template-partner {
		max-height: 100vh;
	}

	/* 自定义颜色 */
	.tn-color-friend {
		color: #100B59;
	}

	.tn-color-light--dark {
		color: #57548A;
	}

	.tn-color-light {
		color: #A6A9CB;
	}

	/* 自定义导航栏内容 start */
	.custom-nav {
		height: 100%;

		&__back {
			margin: auto 5rpx;
			font-size: 48rpx;
			margin-right: 10rpx;
			margin-left: 30rpx;
			flex-basis: 5%;
		}
	}

	/* 自定义导航栏内容 end */


	/* 底部安全边距 start*/
	.tn-tabbar-height {
		min-height: 120rpx;
		height: calc(140rpx + env(safe-area-inset-bottom));
		height: calc(140rpx + constant(safe-area-inset-bottom));
	}

	.partner-fixed {
		position: fixed;
		background-color: rgba(255, 255, 255, 1);
		top: 0;
		width: 100%;
		transition: all 0.25s ease-out;
		z-index: 100;
	}


	.index-list-item {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		overflow: hidden;
		color: red;
		font-size: 28rpx;

		&__image {
			width: 100rpx;
			height: 100rpx;
			margin: 8rpx 8rpx;
			margin-right: 10rpx;
		}
	}


	/* 图标容器1 start */
	.icon1 {
		&__item {
			width: 30%;
			background-color: #FFFFFF;
			border-radius: 10rpx;
			padding: 30rpx;
			margin: 20rpx 10rpx;
			transform: scale(1);
			transition: transform 0.3s linear;
			transform-origin: center center;

			&--icon {
				width: 90rpx;
				height: 90rpx;
				font-size: 50rpx;
				border-radius: 50%;
				margin-bottom: 18rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1);
					background-size: 100% 100%;
					background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg2.png);
				}
			}
		}
	}

	.icon12 {
		&__item {
			transform: scale(1);
			transition: transform 0.3s linear;
			transform-origin: center center;

			&--icon {
				width: 90rpx;
				height: 90rpx;
				font-size: 50rpx;
				transform: rotate(-19deg);
				border-radius: 43% 57% 43% 57% / 57% 43% 57% 43%;
				margin-bottom: 18rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1) rotate(19deg);
					background-size: 100% 100%;
					background-image: url(https://resource.tuniaokj.com/images/cool_bg_image/icon_bg2.png);
				}
			}

		}
	}


	/* 图标容器15 start */
	.icon15 {
		&__item {
			width: 30%;
			background-color: #FFFFFF;
			padding: 30rpx;
			margin: 20rpx 10rpx;
			transform: scale(1);
			transition: transform 0.3s linear;
			transform-origin: center center;

			&--icon {
				width: 90rpx;
				height: 90rpx;
				font-size: 60rpx;
				border-radius: 20rpx;
				position: relative;
				z-index: 1;

				&::after {
					content: " ";
					position: absolute;
					z-index: -1;
					width: 100%;
					height: 100%;
					left: 0;
					bottom: 0;
					border-radius: inherit;
					opacity: 1;
					transform: scale(1, 1);
					background-size: 100% 100%;


				}
			}
		}
	}

	/* 用户头像 start */
	.logo-image {
		width: 90rpx;
		height: 90rpx;
		position: relative;
	}

	.logo-pic {
		background-size: cover;
		background-repeat: no-repeat;
		// background-attachment:fixed;
		background-position: center;
		// border: 1rpx solid rgba(255,255,255,0.05);
		// box-shadow: 0rpx 0rpx 80rpx 0rpx rgba(0, 0, 0, 0.15);
		border-radius: 20rpx;
		overflow: hidden;
		// background-color: #FFFFFF;
	}

	/* 标签 start*/
	.tag-user {
		display: inline-block;
		padding: 8rpx 12rpx 6rpx;
		margin: 0 15rpx 10rpx 0;
		border-radius: 100rpx;
	}
	
	.justify-content-item{
		text-align: center;
	}
</style>